package com.bookshop.service.impl;

import com.bookshop.entity.*;
import com.bookshop.mapper.CarouselMapper;
import com.bookshop.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;


@Service
public class CarouselServiceImpl implements CarouselService {

    private CarouselMapper carouselMapper;

    @Autowired
    public CarouselServiceImpl(CarouselMapper carouselMapper) {
        this.carouselMapper = carouselMapper;
    }

    @Override
    public List<Carousel> selectAllCarousel() {
        return carouselMapper.selectAllCarousel();
    }

    @Override
    public String getCarouselInterval() {
        return carouselMapper.getCarouselInterval();
    }

}
